rglobiom

An R package to support GLOBIOM analysis

Michiel van Dijk and colleagues

February 24, 2020

Q1: Who has never used R?

Q2: Who mainly uses R for ggplot2?

Q3: Who is left?

Why R?

What is an R package?

“In R, the fundamental unit of shareable code is the package. A package bundles together code, data, documentation, and tests, and is easy to share with others.” (Wickham, 2015)

Motivation

  • High demand for ‘pieces of script’
  • Convinced it can make life easier for researchers
  • Similar efforts by other model teams, e.g. various MagPIE packages
  • Keen to learn how to build an R package

Purpose of rglobiom (to be discussed)

  • Provide functions to facilitate GLOBIOM pre/post processing tasks
  • Provide documentation and examples on how to do this
  • Offer a central location for GLOBIOM related info that is nowhere to be found (e.g. list of simus, fm/dm conversion factors, standard crop names, etc)
  • …?

Package contents

EU NUTS map

GLOBIOM 30 region map

LUID map

How does it work?

Link

Need to decide on:

  • Fixed location of base maps
  • Fixed location of OUTPUT_FAO.gdx
  • Standard GLOBIOM nomenclature
  • Location of R support scripts
  • Limited number of scenario columns

Maintenance, updates and extensions

  • Project in the IIASA Github repository
  • Easy to extent and generate documentation

Next steps?

  • Please try and provide feedback
  • Is there anything else that should be added?

Thank you

source: https://blog.revolutionanalytics.com/2017/05/tweenr.html